package java_demos.java_basic.pojo;

public class Dog {
    private String name;
    private Integer age;

    void setName(String name) {
        this.name = name;
    }
    void sleep(){
        System.out.print(this.name+"在睡觉");
    }

    public static void main(String[] args) {
        //生成一个dog对象
        Dog dog = new Dog();
        dog.setName("buck");
        dog.sleep();
    }
}

